Skip to content

feat(saved-mesh): opt in to stored rendered family meshes - #2260

Draft
shifatrHtH wants to merge 1 commit into
DrunkOnJava:mainfrom
shifatrHtH:codex/saved-rendered-family-assets
Draft

shifatrHtH wants to merge 1 commit into
DrunkOnJava:mainfrom
shifatrHtH:codex/saved-rendered-family-assets

Conversation

@shifatrHtH

Copy link
Copy Markdown
Contributor

Summary

Select stored rendered-family meshes in Fine Saved graphics when the caller opts in. The existing light-source check treats a filter containing a GImposter, a GPolyMesh and an empty Geometry sibling as a light-source branch. This change admits that shape only when decoded pointers resolve to a named type-5 render-library asset and a FacetedTopology8 mesh. Type-3 light sources and groups that contain modeled geometry keep their existing behavior.

The mesh stays in its stored symbol frame and uses the existing graphics placement. The reader checks binding-2 normals against the authored triangle winding and preserves the indexed facets. Existing detail and visibility checks still run. Only the opt-in path reads the four additional graph fields.

Use SavedMeshRecovery::SharedBoundaryWithRenderedAssets in scoped attachment, or RVT_RESEARCH_RENDERED_ASSETS=1 in a research build with no explicit policy.

Public evidence

  • On Autodesk's checksum-pinned Snowdon Towers Architectural 2024 sample, 127 owners move from zero selected facets to complete saved meshes. The 60,195 indexed facets match the stored mesh and placement. In the paired Revit IFC check, 115 pass the triangulated surface comparison in both directions. For the remaining 12, the original IFC polygon rings match the saved facets within 0.000000046 sq ft on their supporting planes. IFC triangulation fills extra surface on those cases. The public investigation includes the distinction.
  • Autodesk Architectural Basic recovers 21 owners in each 2024–2027 save. Those results are backed by decoded geometry. A same-save Revit surface comparison is still pending.
  • The public Snowdon Electrical lighting control produces identical saved preview payloads in both arms. The generated selection check also covers type-3 lights, mixed solids, a different topology class, Coarse, and hidden branches.

The replay reads the two Autodesk 2024 fixtures by the names and checksums in autodesk-sample-projects.tsv.

cargo build --locked --profile ci -p rvt-probes --example probe_rendered_saved_assets
python3 -B tools/re/replay_rendered_saved_assets.py \
  target/ci/examples/probe_rendered_saved_assets PUBLIC_AUTODESK_MODEL_DIR

@DrunkOnJava Could you review the selection and graph-budget boundary? A public Measure run with the option enabled would help check for render-library paths that the measured samples do not exercise.

Contribution hygiene

This Apache-2.0 contribution uses already-decoded fields observed on public Autodesk samples. It contains no model files, Autodesk or ODA source, decompiled implementation, NDA material, or copied Revit IFC exporter code.

Refs #2085.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant